﻿using FileToVideo.Config;
using FileToVideo.Enums;
using FileToVideo.Helpers;
using FileToVideo.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace FileToVideo.Class
{
    /// <summary>
    /// 数据帧格式
    /// <br />
    /// 这个暂时没用上,因此抗干扰能力也有所降低
    /// </summary>
    public class DataFrame: IFrameData
    {
        /// <summary>
        /// 帧ID
        /// </summary>
        public int frame_id { get; set; } = 1;

        /// <summary>
        /// 帧类型
        /// </summary>
        public FrameTypeMods frame_type { get; set; } = FrameTypeMods.Data;

        public string Version { get; } = Setting.Version;

        public string data { get; set; } = "";

        /// <summary>
        /// 数据帧签名
        /// </summary>
        public string md5 { get; set; } = Item.MD5("");
    }
}
